package com.example.demo.Service;

import com.example.demo.Entity.Message;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MessageService {
    public void Insert(Message message);
    public void Delete(Integer id);
    public void Update(Message message);
    public List<Message> Search(Integer receiveId);
    public Message Get(Integer id);

    public void deleteMessage(Integer sendId, Integer receiveId);
    public List<Message> SearchDialogue(Integer sendId,Integer receiveId);
    public void deleteById(Integer Id);

}
